package com.nbsaas.boot.project.rest.convert;

import com.nbsaas.boot.project.api.domain.request.ProjectTaskTagRequest;
import com.nbsaas.boot.project.data.entity.ProjectTaskTag;
import com.nbsaas.boot.rest.api.Converter;
import com.nbsaas.boot.utils.BeanDataUtils;

/**
 * 任务标签请求对象转换成实体对象
 */

public class ProjectTaskTagEntityConvert implements Converter<ProjectTaskTag, ProjectTaskTagRequest> {

    @Override
    public ProjectTaskTag convert(ProjectTaskTagRequest source) {
        ProjectTaskTag result = new ProjectTaskTag();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }
}

